<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<h1>{{ question.content }}</h1>

	{% if error_message %}
	   <p><strong>{{error_message}}</strong></p> 
	{% endif %}

	<form action="{% url "poll-vote" question.id %}" method="post">
	{% csrf_token %}
	
	{% for choice in question.choice_set.all %}
		<input type="radio" name="choice" id="choice{{forloop.counter}}" value="{{choice.id}}">	
		<label for="choice{{forloop.counter}}">{{ choice.choice_content }}</label><br>
	{% endfor %}
	<br>	
	<input type="submit" value="Vote">	

	</form>

	<!-- <ul>
		{% for choice in question.choice_set.all %}
		<li>{{ choice.choice_content }}</li>
		{% endfor %}
	</ul> -->
</body>
</html>